package com.ab.web.controller.activity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.ab.web.entity.system.SystemUser;
import com.ab.web.service.activity.LoginService;

@Controller
@RequestMapping("/admin")
public class LoginAction {
	
	@Autowired
	private LoginService loginService;
	@RequestMapping(value="login")
    public String login() {
		SystemUser user = new SystemUser();
		user.setUsername("chenbinghui");
		user.setAddress("北京");
		user.setAge("30");
		user.setTelephone("111111111");
		System.out.println(user.getAddress());
		loginService.insertUser(user);
        return "home";
    }
}
